package com.meisupic.copyright.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.meisupic.copyright.common.PayWayEnum;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * @Author lanjian
 * @Date 2018/3/18 下午4:05
 */
@Data
public class VipOrderVo implements Serializable {

  private Long id;

  private String orderNo;

  private BigDecimal orderPrice;

  private PayWayEnum payWay;

  private Boolean payStatus;

  private String memberCategoryName;

  private Long userId;

  private String userName;

  private String serviceTotal;

  @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
  private Date orderTime;

  private Date orderPayTime;

  public String getServiceTotal() {
    if ("-1".equals(serviceTotal)) {
      return "不限制";
    }
    return serviceTotal;
  }
}
